#define _CRT_SECURE_NO_WARNINGS 1
#include "SkipList.h"
void Test1()
{
	Skiplist sl;
	cout << "add1" << endl;
	sl.add(1);
	sl.Print();
	cout << "add2" << endl;
	sl.add(2);
	sl.Print();
	cout << "add3" << endl;
	sl.add(3);
	sl.Print();
	cout << "add4" << endl;
	sl.add(4);
	sl.Print();
	cout << "erase0" << endl;
	cout << "ret=" << sl.erase(0) << endl;
	sl.Print();
	cout << "erase1" << endl;
	cout<<"ret="<<sl.erase(1)<<endl;
	sl.Print();
	cout << "search1" << endl;
	cout << "ret=" << sl.search(1) << endl;
	sl.Print();

}
int main()
{
	Test1();
	return 0;
}